//package com.sanploy.wechat;
//
//import com.sanploy.wechat.dto.PayNotify;
//import com.thoughtworks.xstream.XStream;
//import com.thoughtworks.xstream.security.AnyTypePermission;
//
///**
// * Created by zhu yingzhi on 2017/10/9.
// */
//public class Main {
//
//    public static void main(String[] args) {
//        String inputXML = "<xml>\n" +
//                "    <appid><![CDATA[wxe12c695c9e5f31ac]]></appid>\n" +
//                "    <attach><![CDATA[支付测试4luluteam]]></attach>\n" +
//                "    <bank_type><![CDATA[CFT]]></bank_type>\n" +
//                "    <cash_fee><![CDATA[1]]></cash_fee>\n" +
//                "    <device_info><![CDATA[WEB]]></device_info>\n" +
//                "    <fee_type><![CDATA[CNY]]></fee_type>\n" +
//                "    <is_subscribe><![CDATA[N]]></is_subscribe>\n" +
//                "    <mch_id><![CDATA[1489616622]]></mch_id>\n" +
//                "    <nonce_str><![CDATA[2092088158]]></nonce_str>\n" +
//                "    <openid><![CDATA[oe7QQ0SdlZzgEzz6AUv-8H-eRsIw]]></openid>\n" +
//                "    <out_trade_no><![CDATA[2092088158]]></out_trade_no>\n" +
//                "    <result_code><![CDATA[SUCCESS]]></result_code>\n" +
//                "    <return_code><![CDATA[SUCCESS]]></return_code>\n" +
//                "    <sign><![CDATA[4678C792D65B8550DA3264DA7A9F4360]]></sign>\n" +
//                "    <time_end><![CDATA[20171009114511]]></time_end>\n" +
//                "    <total_fee>1</total_fee>\n" +
//                "    <trade_type><![CDATA[JSAPI]]></trade_type>\n" +
//                "    <transaction_id><![CDATA[4200000011201710097000539349]]></transaction_id>\n" +
//                "</xml>";
//        XStream xs = new XStream();
//
//        //注册使用了注解的VO
//        xs.processAnnotations(new Class[]{PayNotify.class});
//        PayNotify payNotify = (PayNotify)xs.fromXML(inputXML);
//        System.out.println(payNotify.getReturn_code());
//    }
//}
